package main

import (
	"thirdpaysdk/api/oceanpayment"
	//"github.com/astaxie/beego"
)

func main() {
	account := "191208"
	terminal := "19120801"
	//noticeUrl := "https://api.dhfapp.com" + "/public/oceanpay/notify"
	key := "hh4jb8f2j2ffzHFh40nf44rN6Hx4p6082464x2PT02Nx8ZPp84V0pr440nnp004P"
	//orderId := "123456789002"
	//currency := "CNY"
	//openId := "o6QGm5B4UJK6jWKGoybQJwGEM8Go"
	//ipAddr := "115.159.73.78"
	//firstName := "zhang"
	//lastName := "fei"
	//productName := "测试单据"
	//amount := "0.01"
	/*
	oceanpayment.MicroAppPay(account,terminal,noticeUrl,orderId,currency,amount,openId,firstName,lastName,ipAddr,productName,key)
	*/
	outerPayId := "190307152435673120873"
	orderId := "323551057219162112"
	refundType := "1"
	refundAmount := "0.01"
	description := "顾客不想买了"
	oceanpayment.Refunds(account,terminal,outerPayId,orderId,refundType,refundAmount,description,key)
}
